<?php
/*
	辅助应用
*/
defined('BY_JYA') or exit('error');
$list = array(
			array('title'=>'业务类','list'=>array(
							array('name'=>'jy_jd','title'=>'智慧酒店','icon'=>'fa-share-alt','color'=>'#cc99ff','action'=>'jy_jd/news/','desc'=>'智慧酒店，在线预定解决方案！'),
							array('name'=>'jy_zuche','title'=>'线上租车','icon'=>'fa-navicon','color'=>'#66cc99','action'=>'jy_zuche/list/','desc'=>'线上租车，租车旅游'),
			)),
			array('title'=>'辅助类','list'=>array(
							array('name'=>'jy_stccsapi','title'=>'STCCS门票接口','icon'=>'fa-wechat','color'=>'#66cc33','action'=>'jy_stccsapi/index/','desc'=>'STCCS门票接口，线上线下一体化'),
			)),
);
//判断是否基本设置了
$setting = $this->plugin_setting('setting');
$plugin_setting = $setting['plugins'];
if($plugin_setting){
		$list[1]['list'] = $plugin_setting;
}
foreach($list as &$type){
	foreach($type['list'] as &$p){
		$install = check_permission($p['name']);
		if($install){
			$p['is_install'] = 1;
			$p['is_show'] = 1;
		}else{
			$p['is_install'] = 0;
			$p['is_show'] = 0;
			if($_SESSION['isfounder']){
				$p['is_show'] = 1;
			}
		}
		
	}
}

return  $list;